package demo;


import demo.standard.INode;
import demo.standard.LeafNode;
import demo.standard.NonLeafNode;

public class ClientForStandard {

    public static void main(String[] args) {

        INode root = new NonLeafNode("根节点");

        INode level2Node = new NonLeafNode("第二层节点1");
        root.addChild(level2Node);

        level2Node.addChild(new LeafNode("叶子节点1"));
        level2Node.addChild(new LeafNode("叶子节点2"));

        root.use();
    }
}
